<!--
  v-bind 数组语法  -- 不常用
-->

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Learn Vue</title>
</head>
<body>

  <div id="app">
    <h2 :style="[baseStyle, baseStyle1]">{{message}}</h2>
  </div>

  <script src="../../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: '你好',
        baseStyle: {fontSize: '80px'},
        baseStyle1: {backgroundColor: 'red'},
      },
    })
  </script>
</body>
</html>